package io.github.iogogogo.api;

import io.github.iogogogo.commons.support.wrapper.ResponseWrapper;
import io.github.iogogogo.web.WebBaseApi;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by tao.zeng on 2024/11/7.
 */
@RestController
@RequestMapping("/api/index")
public class IndexApi implements WebBaseApi {

    @GetMapping
    public ResponseWrapper<?> index() {
        return ok("hello world");
    }
}
